package com.shujia.wyh.day08.homework.test1;

public class SeaPizza extends Pizza{

    private String peiliao;

    public SeaPizza() {

    }

    public SeaPizza(String name, int size, int price, String peiliao) {
        super(name, size, price);
        this.peiliao = peiliao;
    }

    public String getPeiliao() {
        return peiliao;
    }

    public void setPeiliao(String peiliao) {
        this.peiliao = peiliao;
    }

    @Override
    public void show() {
        System.out.println("名称：" + getName());
        System.out.println("价格：" + getPrice()+"元");
        System.out.println("大小：" + getSize()+"寸");
        System.out.println("配料：" + peiliao);
    }
}
